//
//  UIBarButtonItem+BaseFramework.h
//  Project
//
//  Created by Suny on 14-11-18.
//  Copyright (c) 2014年 Suny. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIBarButtonItem (BaseFramework)

+ (UIBarButtonItem *)rightBarButtonItemWithTitle:(NSString *)title target:(id)target selector:(SEL)selector;
+ (UIBarButtonItem *)leftBarButtonItemWithTitle:(NSString *)title target:(id)target selector:(SEL)selector;
+ (UIBarButtonItem *)backBarButtonItemWithTarget:(id)target selector:(SEL)selector;
+ (UIBarButtonItem *)refreshBarButtonItemWithTarget:(id)target selector:(SEL)selector;

+ (UIBarButtonItem *)leftBarButtonItemWithImageName:(NSString *)imageName
							   highlightedImageName:(NSString *)highlightedImageName
											 target:(id)target
										   selector:(SEL)selector;
+ (UIBarButtonItem *)rightBarButtonItemWithImageName:(NSString *)imageName
								highlightedImageName:(NSString *)highlightedImageName
											  target:(id)target
											selector:(SEL)selector;

+ (UIBarButtonItem *)leftBarButtonItemWithImageName:(NSString *)imageName
											 target:(id)target
										   selector:(SEL)selector;
+ (UIBarButtonItem *)leftBarButtonItemWithImageName:(NSString *)imageName
											 target:(id)target
										   selector:(SEL)selector
										  applySkin:(BOOL)applySkin;

+ (UIBarButtonItem *)rightBarButtonItemWithImageName:(NSString *)imageName
											  target:(id)target
											selector:(SEL)selector;
+ (UIBarButtonItem *)rightBarButtonItemWithImageName:(NSString *)imageName
								   selectedImageName:(NSString *)selectedImageName
											  target:(id)target
											selector:(SEL)selector;

+ (UIBarButtonItem *)rightBarButtonItemWithTitle:(NSString *)title titleColor:(UIColor *)titleColor target:(id)target selector:(SEL)selector;

- (UIButton *)customButton;
@end
